// 创建验证规则
const Rules = {
    nickname: [
        {
            required: true,
            message: '请输入昵称'
        }
    ],
    mobile: [
        {
            required: true,
            message: '请输入手机号码'
        }
    ],
    sex: [
        {
            required: true,
            message: '请选择性别'
        }
    ],
    region_text: [
        {
            required: true,
            message: '请选择地区'
        }
    ],
    type_text: [
        {
            required: true,
            message: '请选择行业'
        }
    ],
    email: [
        {
            required: true,
            message: '请输入登录邮箱'
        },
        {
            message: '邮箱输入的格式有误',
            pattern: /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/
        }
    ],
    password: [
        {
            required: true,
            message: '请输入密码'
        }
    ]
}
export default Rules